package com.thinkgem.jeesite.modules.ship.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 出海预约信息Entity
 * @author lgx
 * @version 2016-04-17
 */
public class ShipSeaBook extends DataEntity<ShipSeaBook> {
	
	private static final long serialVersionUID = 1L;
	private int year;//年份
	private int month;//月份
	private int moning;//上午
	private int afternoon;//下午
	private String weekDate;//星期几
	private int dateType;//存储上午或者下午0，上午，1下午
	private String homePort;		// 船籍港
	private String bookUserId;		// 预约人ID
	private String bookUserName;		// 预约人姓名
	private Date appointDate;		// 预约时间
	private String shipNo;		// 船牌号
	private String telephone;		// 手机号码
	private String appointAddress;		// 预约办理地址
	private Date beginAppointDate;		// 开始 预约时间
	private Date endAppointDate;		// 结束 预约时间
	
	private String dateTypeName; // 查询id集合
	
	public ShipSeaBook() {
		super();
	}

	public ShipSeaBook(String id){
		super(id);
	}

	   
	   
    public int getDateType() {
		return dateType;
	}

	public void setDateType(int dateType) {
		this.dateType = dateType;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getMoning() {
		return moning;
	}

	public void setMoning(int moning) {
		this.moning = moning;
	}

	public int getAfternoon() {
		return afternoon;
	}

	public void setAfternoon(int afternoon) {
		this.afternoon = afternoon;
	}

	public String getWeekDate() {
		return weekDate;
	}

	public void setWeekDate(String weekDate) {
		this.weekDate = weekDate;
	}

	/** 
     *船籍港  
     *
     */
	@Length(min=0, max=50, message="船籍港长度必须介于 0 和 50 之间")
	public String getHomePort() {
		return homePort;
	}

    /** 
     *船籍港  
     *
     */
	public void setHomePort(String homePort) {
		this.homePort = homePort;
	}
	
	   
    /** 
     *预约人ID  
     *
     */
	@Length(min=0, max=38, message="预约人ID长度必须介于 0 和 38 之间")
	public String getBookUserId() {
		return bookUserId;
	}

    /** 
     *预约人ID  
     *
     */
	public void setBookUserId(String bookUserId) {
		this.bookUserId = bookUserId;
	}
	
	   
    /** 
     *预约人姓名  
     *
     */
	@Length(min=0, max=50, message="预约人姓名长度必须介于 0 和 50 之间")
	public String getBookUserName() {
		return bookUserName;
	}

    /** 
     *预约人姓名  
     *
     */
	public void setBookUserName(String bookUserName) {
		this.bookUserName = bookUserName;
	}
	
	   
    /** 
     *预约时间  
     *
     */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAppointDate() {
		return appointDate;
	}

    /** 
     *预约时间  
     *
     */
	public void setAppointDate(Date appointDate) {
		this.appointDate = appointDate;
	}
	
	   
    /** 
     *船牌号  
     *
     */
	@Length(min=0, max=50, message="船牌号长度必须介于 0 和 50 之间")
	public String getShipNo() {
		return shipNo;
	}

    /** 
     *船牌号  
     *
     */
	public void setShipNo(String shipNo) {
		this.shipNo = shipNo;
	}
	
	   
    /** 
     *手机号码  
     *
     */
	@Length(min=0, max=32, message="手机号码长度必须介于 0 和 32 之间")
	public String getTelephone() {
		return telephone;
	}

    /** 
     *手机号码  
     *
     */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	   
    /** 
     *预约办理地址  
     *
     */
	@Length(min=0, max=500, message="预约办理地址长度必须介于 0 和 500 之间")
	public String getAppointAddress() {
		return appointAddress;
	}

    /** 
     *预约办理地址  
     *
     */
	public void setAppointAddress(String appointAddress) {
		this.appointAddress = appointAddress;
	}
	
	
	public Date getBeginAppointDate() {
		return beginAppointDate;
	}

    
	public void setBeginAppointDate(Date beginAppointDate) {
		this.beginAppointDate = beginAppointDate;
	}
	
	
	public Date getEndAppointDate() {
		return endAppointDate;
	}

  
	public void setEndAppointDate(Date endAppointDate) {
		this.endAppointDate = endAppointDate;
	}

	public String getDateTypeName() {
		return dateTypeName;
	}

	public void setDateTypeName(String dateTypeName) {
		this.dateTypeName = dateTypeName;
	}
}